package com.example.demo.controller;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("cors")
public class CorsController {

    @GetMapping("test")
    @CrossOrigin(value = "http://localhost:8081",allowedHeaders = "*",maxAge = 1800)
    public String testCors(){
        return "testCors";
    }

}
